#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void Reverse(char* ch, int sz)
{
	char* pleft = ch;
	char* pright = ch + sz - 1;
	while (pleft <= pright)
	{
		char tmp = *pleft;
		*pleft = *pright;
		*pright = tmp;
		pleft++;
		pright--;
	}
	int i = 0;
	for (i = 0; i < sz; i++)
	{
		printf("%c ", *(ch + i));
	}
}

int main()
{
	char ch[] = "abcdef";
	int sz = sizeof(ch) / sizeof(ch[0]);
	Reverse(ch, sz);
	return 0;
}